package cn.dw.mm.service;

import java.io.IOException;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import cn.dw.mm.domain.NewEightSelf;
import cn.dw.mm.domain.Selfexamination;

public interface SelfexaminationService {
	List<NewEightSelf> selectNewEightSelfsByUserId(Integer userId);
	List<NewEightSelf> selectNewEightSelfsByEightFields(NewEightSelf newEightSelf);
	int deleteById(String userId_selfExaminationId);
	int insert(HttpServletRequest request) throws IllegalStateException, IOException;
	int update(Selfexamination selfexamination);
	
	List<Map<String, Object> > countByDepartment();
	List<Map<String, Object> > countByDomain();
	List<Map<String, Object> > countByEightfield();
	Integer countByEightfieldIndex(Integer eightFieldsIndex);
	List<NewEightSelf> selectNewEightSelfsByUser(NewEightSelf newEightSelf);
}
